package cn.yr.im.api;

import cn.yr.common.core.constant.ServiceNameConstants;
import cn.yr.common.core.domain.entity.YrMessage;
import cn.yr.common.core.domain.vo.PageVo;
import cn.yr.common.exception.ret.Ret;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author lang 1102076808@qq.com
 * @Description 消息
 * @Date 16:01 2021/5/23
 **/
@FeignClient(contextId = "MessageApi" , value = ServiceNameConstants.SERVICE_IM)
public interface MessageApi {

    /**
     * 分页列表
     */
    @RequestMapping("/im/message/page")
    Ret page(@RequestBody PageVo<YrMessage> pageVo);

}
